﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/UserMaster.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Abs.App.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>T&T Appointment Booking System</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Welcome <%: this.greeting %></h2>

    <%if (Session["Email"] == null)
      { %>
            <p>T&T Appointment Booking System is built to help staffs to book available rooms for senior-level meeting purposes .</p>
            <p>If you are one of the staff members, it is recommended that you start by <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/User/Login.aspx">Logging In</asp:HyperLink> to your account,</p>
            <p>or <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/User/Register.aspx">Registering</asp:HyperLink> a new one.</p>
    <% }
      else if ((int)Session["Role"] == (int)Abs.Core.Models.User.RoleEnum.Admin)
      { %>
            <p>Thank you for logging in to your admin account. You have authority to 
            <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Admin/Manage_Users.aspx">Manage User Accounts</asp:HyperLink>,
            <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/Admin/Manage_Rooms.aspx">Manage Available Rooms</asp:HyperLink> or
            <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/Admin/Manage_Appointments.aspx">Manage User Appointments</asp:HyperLink>
            </p>
            <p>You also still have access to User pages such as 
                <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Booking/Check_Availability.aspx">Checking Availability</asp:HyperLink> of rooms to book or start
                <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Booking/Make_Appointment.aspx">Booking</asp:HyperLink> the slots that you want.
            </p>
       <% }
      else
      { %>
            <p> Thank you for logging in. You can now start <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Booking/Check_Availability.aspx">Checking Available</asp:HyperLink> rooms to book</p>
            <p>or start <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Booking/Make_Appointment.aspx">Booking</asp:HyperLink> the slots that you want.</p>
       <%} %>

</asp:Content>